package A01;

public class Test {
    public static void main(String[] args) {
        double[] arr = {24.4,11.1,35.5,88.8,44.4};
        System.out.println("此double数组的最大值为："+max(arr));
    }

    public static double max(double[] arr){
        double max = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if(arr[i] > max)
                max = arr[i];
        }
        return max;
    }
}